home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
abrows1a
/
frmmain.frm
< prev
next >
Wrap
Text File
|
1999-09-18
|
7KB
|
250 lines
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmMain
Caption = "Andrew's Web Browser"
ClientHeight = 2220
ClientLeft = 165
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 2220
ScaleWidth = 4680
StartUpPosition = 1 'CenterOwner
Begin VB.CommandButton Command4
Caption = "HTML editor"
Height = 495
Left = 1800
TabIndex = 5
Top = 960
Width = 1215
End
Begin VB.PictureBox Picture1
BorderStyle = 0 'None
Height = 1815
Left = 0
Picture = "frmMain.frx":0000
ScaleHeight = 1815
ScaleWidth = 1695
TabIndex = 4
Top = 0
Width = 1695
End
Begin VB.CommandButton Command3
Caption = "&Exit"
Height = 495
Left = 3240
TabIndex = 3
Top = 960
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "&Contact Information"
Height = 495
Left = 3240
TabIndex = 2
Top = 240
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "&Web Browser"
Height = 495
Left = 1800
TabIndex = 1
Top = 240
Width = 1215
End
Begin MSComctlLib.StatusBar sbStatusBar
Align = 2 'Align Bottom
Height = 270
Left = 0
TabIndex = 0
Top = 1950
Width = 4680
_ExtentX = 8255
_ExtentY = 476
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 3
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 1
Object.Width = 2619
Text = "Status"
TextSave = "Status"
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 6
AutoSize = 2
TextSave = "18/09/99"
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 5
AutoSize = 2
TextSave = "14:07"
EndProperty
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Comic Sans MS"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.Menu mnuFile
Caption = "&File"
Begin VB.Menu mnuFileBar5
Caption = "-"
Visible = 0 'False
End
Begin VB.Menu mnuFileExit
Caption = "E&xit"
End
End
Begin VB.Menu mnuView
Caption = "&View"
Begin VB.Menu mnuViewStatusBar
Caption = "Status &Bar"
Checked = -1 'True
End
Begin VB.Menu mnuViewBar0
Caption = "-"
End
Begin VB.Menu mnuViewWebBrowser
Caption = "&Web Browser"
End
Begin VB.Menu html
Caption = "&HTML Editor"
End
Begin VB.Menu Contact
Caption = "&Contact"
End
End
Begin VB.Menu mnuHelp
Caption = "&Help"
Begin VB.Menu mnuHelpContents
Caption = "&Contents"
End
Begin VB.Menu mnuHelpSearchForHelpOn
Caption = "&Search For Help On..."
End
Begin VB.Menu mnuHelpBar0
Caption = "-"
End
Begin VB.Menu mnuHelpAbout
Caption = "&About "
End
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Function OSWinHelp% Lib "user32" Alias "WinHelpA" (ByVal hwnd&, ByVal HelpFile$, ByVal wCommand%, dwData As Any)
Private Sub Command1_Click()
frmBrowser.Show , Me
End Sub
Private Sub Command2_Click()
frmHTML.Show , Me
End Sub
Private Sub Command3_Click()
'unload the form
Unload Me
End Sub
Private Sub Command4_Click()
frmEditor.Show , Me
End Sub
Private Sub Contact_Click()
frmHTML.Show , Me
End Sub
Private Sub Form_Load()
Me.Left = GetSetting(App.Title, "Settings", "MainLeft", 1000)
Me.Top = GetSetting(App.Title, "Settings", "MainTop", 1000)
Me.Width = GetSetting(App.Title, "Settings", "MainWidth", 6500)
Me.Height = GetSetting(App.Title, "Settings", "MainHeight", 6500)
End Sub
Private Sub Form_Unload(Cancel As Integer)
Dim i As Integer
For i = Forms.Count - 1 To 1 Step -1
Unload Forms(i)
Next
If Me.WindowState <> vbMinimized Then
SaveSetting App.Title, "Settings", "MainLeft", Me.Left
SaveSetting App.Title, "Settings", "MainTop", Me.Top
SaveSetting App.Title, "Settings", "MainWidth", Me.Width
SaveSetting App.Title, "Settings", "MainHeight", Me.Height
End If
End Sub
Private Sub html_Click()
frmEditor.Show vbModal, Me
End Sub
Private Sub mnuHelpAbout_Click()
frmAbout.Show vbModal, Me
End Sub
Private Sub mnuHelpSearchForHelpOn_Click()
Dim nRet As Integer
If Len(App.HelpFile) = 0 Then
MsgBox "There is no Help file, god damn it!", vbInformation, Me.Caption
Else
On Error Resume Next
nRet = OSWinHelp(Me.hwnd, App.HelpFile, 261, 0)
If Err Then
MsgBox Err.Description
End If
End If
End Sub
Private Sub mnuHelpContents_Click()
Dim nRet As Integer
If Len(App.HelpFile) = 0 Then
MsgBox "There is no Help file, god damn it!", vbInformation, Me.Caption
Else
On Error Resume Next
nRet = OSWinHelp(Me.hwnd, App.HelpFile, 3, 0)
If Err Then
MsgBox Err.Description
End If
End If
End Sub
Private Sub mnuViewWebBrowser_Click()
Dim frmB As New frmBrowser
StartingAddress = "Enter URL here..."
frmB.Show
End Sub
Private Sub mnuViewStatusBar_Click()
mnuViewStatusBar.Checked = Not mnuViewStatusBar.Checked
sbStatusBar.Visible = mnuViewStatusBar.Checked
End Sub
Private Sub mnuFileExit_Click()
Unload Me
End Sub
'This was made by that guy, Andrew Madden :0)